﻿<%@ Page Title="Wild2s" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<Wild2.Models.Pages.Blog.Sandbox>" %>
<asp:Content ID="TitleContent" ContentPlaceHolderID="TitleContent" runat="server">
    <%= Resources.Home.Title %>
</asp:Content>
<asp:Content ID="Content1" ContentPlaceHolderID="HeaderContent" runat="server">
    <%  String version = "pda"; if (Session[Wild2.Models.Constants.SessionConstants.VERSION] != null) version = Session[Wild2.Models.Constants.SessionConstants.VERSION].ToString(); %>
    <% Html.RenderPartial("~/Views/Shared/" + version + "/Header.ascx", "Все записи"); %>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <%  String version = "pda"; if (Session[Wild2.Models.Constants.SessionConstants.VERSION] != null) version = Session[Wild2.Models.Constants.SessionConstants.VERSION].ToString(); %>
    <% if (!String.IsNullOrEmpty(Model.infoMessage))
       {
           Html.RenderPartial("~/Views/Shared/" + version + "/InfoBox.ascx", Model.infoMessage);
       } %>
       <div class="container">
    <% 
        Html.RenderPartial("~/Views/Shared/" + version + "/Paging/Top.ascx", Model.pt);
        Html.RenderPartial("~/Views/Shared/" + version + "/Element.ascx", Html.ActionLink("Добавить запись в песочницу", "AddSandbox", "Blog"));
        Html.RenderPartial("~/Views/Shared/" + version + "/Blogs/SandboxTopicList.ascx", Model.btl);
        Html.RenderPartial("~/Views/Shared/" + version + "/Paging/Bottom.ascx", Model.pb);
    %>
        </div>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="FooterContent" runat="server">
    <%  String version = "pda"; if (Session[Wild2.Models.Constants.SessionConstants.VERSION] != null) version = Session[Wild2.Models.Constants.SessionConstants.VERSION].ToString(); %>
    <% //Html.RenderPartial("~/Views/Shared/" + version + "/Footer.ascx", "", new ViewDataDictionary() { { "showlegend", true } });
        Html.RenderPartial("~/Views/Shared/" + version + "/Footer.ascx");
        %>
</asp:Content>